<?php

use think\Route;

Route::rule('api/uploadImg.so','share/upload_image/uploadImage');//图片上传功能

return [
    '__pattern__' => [
        'name' => '\w+',
    ],
    '[hello]'     => [
        ':id'   => ['index/hello', ['method' => 'get'], ['id' => '\d+']],
        ':name' => ['index/hello', ['method' => 'post']],
    ],
    'api/sendCode.so'      => 'share/send_code/sendCode', //短信接口
    'api/pingAddress.so'   => 'share/ping_address/pingAddress', //ping address功能
    'api/luckDraw.so'     => 'share/luck_draw/luckDraw', //图片上传功能
//    '__miss__' => 'share/v1.miss/miss',  //配置miss路由
];
